import { Column, Entity, PrimaryGeneratedColumn} from "typeorm";


@Entity()
export default class ExchangeAccountEntity {
    @PrimaryGeneratedColumn()
    public id!: number;
    @Column()
    public userid!: number;
    @Column({type: 'varchar', length: 10})
    public exchange!: string;
    @Column({type: 'varchar', length: 256})
    public access_key!: string;
    @Column({type: 'varchar', length: 256})
    public secret_key!: string;
    @Column({type: 'varchar', length: 32, default: '' })
    public uid!: string;

    @Column({type: 'varchar', length: 32, default: '' })
    public trade_password?: string;
}
